//
//  CommandeEteindre.m
//  Metronome
//
//  Created by Thomas Dupont on 01/10/09.
//  Copyright 2009 Greenteam. All rights reserved.
//

#import "CommandeEteindre.h"


@implementation CommandeEteindre
@synthesize afficheur;

- (id)initWithLED:(NSUInteger)led
{
	if([super init] != nil)
	{
		numLED = led;
		name = [[NSString stringWithFormat:@"CommandEteindre%d", numLED] retain];
	}
	return self;
}

- (void)dealloc
{
	[(id)afficheur release];
	[super dealloc];
}
- (id)copyWithZone:(NSZone *)zone
{
	CommandeEteindre* copy = [[[self class] allocWithZone: zone] init];
	[copy setAfficheur:[self afficheur]];
    return copy;
}

- (void)execute
{
	[afficheur eteindreLED:numLED];
}

- (NSString*)getName
{
	return name;
}

- (void)setName:(NSString*)theName
{
	name = theName;
}

@end
